package course.mystream;

import java.util.ArrayList;

public class MyStream {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");

        list.stream().forEach(s->
            System.out.println(s)
        );
    }
}
